const Router = require('koa-router');
const router = new Router();

router.get('/articles', async (ctx) => {
  ctx.body = [
    { id: 1, title: 'Koa 路由介绍' },
    { id: 2, title: 'Koa 中间件机制' }
  ];
});

module.exports = router;